﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowMessage.aspx.cs" Inherits="ShowMessage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>聊天室</title>
     <style type="text/css">
        body,td,th {
            font-size: 16px;
            color:black;
            font-weight:bold;
            padding:inherit;
        }
    </style>
</head>
<body>
    <script>setTimeout("location.href='ShowMessage.aspx'",900)</script>
    <form id="form1" runat="server">
        <div>
                    <%
                ArrayList MessageList = new ArrayList();
                if(Application["MessageList"]==null)
                {
                    Response.Write("暂无聊天信息");
                }
                else
                {
                    MessageList = (ArrayList)Application["MessageList"];
                    for(int i=0;i<MessageList.Count; i++)
                    {
                        Response.Write(MessageList[i]);
                    }
                }
                    %>
        </div>
     </form>
</body>
</html>
